GBML manual / Backgrounds

perspective_floor_height

Sets how high the perspective floor’s camera is above the picture, in picture pixels. It starts at 16.

Game Boy: not available

Game Boy Color: not available

Sega Genesis: not built yet - The Sega Genesis will draw the road its own way.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

perspective_floor_height(height)

Arguments

NameType
heightreal

Returns

Nothing.

Description

Sets how high the perspective floor's camera is above the picture, in picture pixels. It starts at 16 and is held between 1 and 256. It does nothing in a room that has no zoomable background.

Higher shows more floor and makes the road look smaller and farther away. Lower puts the camera near the ground and the road fills the screen. Together with the field of view it decides how quickly things shrink toward the horizon.

Example

perspective_floor_height(24);

A camera 24 picture pixels up: a road 64 pixels wide fills about a third of the screen right under the camera.

On the GBA

A no-op in a room that has no zoomable background. Held between 1 and 256. Higher shows more floor and makes the road look smaller and farther; lower puts the camera near the ground and the road fills the screen. Together with the field of view it decides how fast things shrink toward the horizon.

See also: Perspective floorperspective_floor_cameraperspective_floor_viewperspective_floor_horizon